package com.huawei.appmarket.framework.fragment;

import android.view.View;
import android.widget.AbsListView;
import com.huawei.appgallery.foundation.ui.framework.fragment.AppListFragment;
import com.huawei.appmarket.framework.fragment.request.SecondaryListFragmentRequest;
import o.dhp;

public class SecondaryListFragment<T extends SecondaryListFragmentProtocol> extends AppListFragment<T> {
    public void ॱﾟ() {
        this.ॱꜞ = new dhp();
    }

    public void onScroll(AbsListView absListView, int i, int i2, int i3) {
        super.onScroll(absListView, i, i2, i3);
        if (((SecondaryListFragmentProtocol) ˆ()).ˏ() != null) {
            SecondaryListFragmentRequest ˏ = ((SecondaryListFragmentProtocol) ˆ()).ˏ();
            if (this.ᵢ != null && this.ͺˎ != null && this.ͺˏ != 1 && ˏ.ˋᐝ() != null) {
                View childAt = this.ͺˎ.getChildAt(0);
                if (childAt != null) {
                    if (i == 0) {
                        int i4 = -childAt.getTop();
                        if (i4 != 0) {
                            this.ᵢ.ˋ(i4, childAt.getHeight());
                            return;
                        }
                        return;
                    }
                    this.ᵢ.ˋ(1, -1);
                }
            }
        }
    }
}
